package com.future.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Auther: 田坑坑
 * @Date: 2022/6/20 14:01
 * @Description:  我题序等你回
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "notice")
public class Notice {
    @TableId(value = "noticeId", type = IdType.AUTO)
    private Integer noticeid;

    @TableField(value = "noticeContent")
    private String noticecontent;

    @TableField(value = "noticeStatus")
    private String noticestatus;

    @TableField(value = "noticePublisher")
    private String noticepublisher;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    @TableField(value = "noticePublishTime")
    private Date noticepublishtime;

    @TableField(value = "noticeUpdatePeople")
    private String noticeupdatepeople;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    @TableField(value = "noticeUpdateTime")
    private Date noticeupdatetime;

    public static final String COL_NOTICEID = "noticeId";

    public static final String COL_NOTICECONTENT = "noticeContent";

    public static final String COL_NOTICESTATUS = "noticeStatus";

    public static final String COL_NOTICEPUBLISHER = "noticePublisher";

    public static final String COL_NOTICEPUBLISHTIME = "noticePublishTime";

    public static final String COL_NOTICEUPDATEPEOPLE = "noticeUpdatePeople";

    public static final String COL_NOTICEUPDATETIME = "noticeUpdateTime";
}